using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FutureOpen.Core;
using FutureOpen.Core.func;
using FutureOpen.Core.func.db;
using System.Collections.Generic;

public partial class test_InfoCard : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                int usrid = Convert.ToInt32(Request.QueryString["UsrID"]);
                BindUserInfo(usrid);
            }
            catch
            {

            }
        }
    }
    private void BindUserInfo(int usrid)
    {
        MyUsr myusr = new MyUsr();
        Usr user = myusr.GetUsrByID(usrid);

        if (user != null)
        {
            lblCompany.Text = user.Usr_company;
            lblTitle.Text = user.Usr_title;
            lblUserName.Text = user.Usr_name;
            lblArts.Text = user.Usr_qa + "ƪ";

            hlSendMsg.NavigateUrl = "MailNew.aspx?recid=" + usrid;

            Image1.ImageUrl = "GetImage.ashx?usrid=" + usrid;
        }
    }
}
